<%--
    Document   : index_antigo
    Created on : 20/07/2010, 15:15:07
    Author     : caio
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<link rel="stylesheet" type="text/css" href="css/styleIndex.css"/>
<html>
    <head>
        <%@include file="/IconPagina.jsp"%>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sistema ADRS</title>
        <!--<script type="text/javascript">
            //Created / Generates the captcha function
            function DrawCaptcha()
            {
                var a = Math.ceil(Math.random() * 10)+ '';
                //var b = Math.ceil(Math.random() * 10)+ '';
                var b = "agqfBçolQpy"[Math.ceil(Math.random() * 10)];
                var c = Math.ceil(Math.random() * 10)+ '';
                //var d = Math.ceil(Math.random() * 10)+ '';
                var d = "aimnBcolejf"[Math.ceil(Math.random() * 10)];
                //var e = Math.ceil(Math.random() * 10)+ '';
                //var f = Math.ceil(Math.random() * 10)+ '';
                //var g = Math.ceil(Math.random() * 10)+ '';
                var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d;
                //var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g;
                document.getElementById("txtCaptcha").value = code;
                disableSelection(document.getElementById("txtCaptcha"));
            }

            // Validate the Entered input aganist the generated security code function
            function ValidCaptcha(){
                var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
                var str2 = removeSpaces(document.getElementById('txtInput').value);
                if (str1 == str2) return true;
                document.getElementById('rotulo').innerHTML = "Código da imagem incorreto";
                DrawCaptcha();
                return false;
            }

            // Remove the spaces from the entered and generated code
            function removeSpaces(string)
            {
                return lowCase(string.split(' ').join(''));
            }

            function lowCase(string){
                return string.toLowerCase();
            }

            function disableSelection(target){
                if (typeof target.onselectstart!="undefined") //IE route
                    target.onselectstart=function(){return false}
                else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
                    target.style.MozUserSelect="none"
                else //All other route (ie: Opera)
                    target.onmousedown=function(){return false}
                target.style.cursor = "default"
            }
        </script>-->
        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-24233657-1']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>
    </head>
    <body>
        <!--<body onload="DrawCaptcha();">-->
        <center><img alt="Logotipo ADRS"  class="imagemAdrs" src="images/ADRS.png"></center>
        <div class="bordaBox">
            <b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
            <div id="content">
                <form action="ServletCentral" method="post" class="login">
                    <input type="hidden" name="comando" value="CmdLogin" />
                    <fieldset>
                        <label>Login:</label><br/>
                        <input type="text" name="login" value="" size="30"/><br/>
                        <label>Senha:</label><br/>
                        <input type="password" name="senha" value="" size="30"/><br/>
                        <!--<input type="text" readonly="true" id="txtCaptcha"
                               style="background-image: url(images/1.JPG); text-align:center; border:none;
                               font-weight:bold; color: dimgray; font-size: larger; font-style: italic; font-family:Arial" /><br/>
                        <input type="button" id="btnrefresh" value="Trocar" onclick="DrawCaptcha();" /><br />
                        <label>Código da imagem:</label><br/>
                        <input type="text" id="txtInput" name="captcha" value="" size="30"/><br/>-->
                        <label>Acesso:</label><br/>
                        <select name="conta">
                            <option value="auto">Selecionar Automaticamente</option>
                            <option value="visit">Visitante</option>
                            <option value="adrs">ADRS</option>
                            <option value="admin">Administrador</option>
                            <option value="supervisor">Supervisor</option>
                        </select>
                        <p id="rotulo" class="mensagemErro"></p>
                        <%@include file="/error.jsp"%>
                    </fieldset>
                    <!--<input class="button" title="Enviar" type="submit" onclick="return ValidCaptcha();" value="Enviar" name="enviar" />-->
                    <input class="button" title="Enviar" type="submit" value="Enviar" name="enviar" />
                    <input class="button" title="Limpar Campos" type="reset" value="Limpar" name="limpar" />
                    <p><a style="font-size: small;" href="recuperar_senha.jsp">Esqueceu a senha? <br/>Não consegue acessar sua conta?<br/>Clique aqui!</a></p>
                </form>
            </div>
            <b class="b4"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b>
        </div>
        <%@include file="footerIndex.jsp" %>
    </body>
</html>
